<?php
/**
 * @copyright   Copyright (C) Open Web Software Ltda. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

// jquery mobile
$doc->addStyleSheet($this->baseurl . 'templates/'.$this->template.'/css/jquery.mobile-1.3.1.min.css', $type = 'text/css');
$doc->addScript($this->baseurl . 'templates/'.$this->template.'/js/jquery-1.9.1.min.js');
$doc->addScript($this->baseurl . 'templates/'.$this->template.'/js/jquery.mobile-1.3.1.min.js');
$doc->addStyleSheet('templates/'.$this->template.'/css/template.mobile.css');
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <jdoc:include type="head" />
  <script>
      try {
        $(function() {
        });
      }
      catch (error) {
        console.error("Your javascript has an error: " + error);
      }
    </script>
    <script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-42633282-1', 'sac.org.co');
  ga('send', 'pageview');

</script>
</head>
<body>
    <div data-role="page">
      
      <div data-theme="a" data-role="panel" id="nav" data-position="left" data-display="overlay">
        <a data-theme="a" href="#header" data-role="button" data-rel="close" data-icon="delete" data-iconpos="notext" class="b-close">Cerrar panel</a>
        <?php if ($this->countModules( 'm-search' )) : ?>
        <jdoc:include type="modules" name="m-search" style="none" />
        <?php endif; ?>
        <?php if ($this->countModules( 'm-nav01' )) : ?>
          <jdoc:include type="modules" name="m-nav01" style="none" />
        <?php endif; ?>
      </div>

      <div data-theme="a" data-role="header" id="header" data-position="fixed">
        <a href="/">
          <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/m-home.png" />
        </a>

        <h1>Sociedad de Agricultores de Colombia<br>Fundada en 1871</h1>
        
        
        <a href="#nav">
          <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/m-menu.png" />
        </a>
      </div>

      <div id="m-header">
        <div id="logo">
          <a href="<?php echo $this->baseurl ?>">
            <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/m-logo-sac.png" alt="<?php echo JText::_('TPL_OW-BYTE_LOGO_ALT'); ?>" />
          </a>
        </div>
      </div>

      
      <div data-role="content">
      <div class="featured">
        <div><jdoc:include type="modules" name="featured1" style="html5" /></div>
        <div><jdoc:include type="modules" name="featured2" style="html5" /></div>
        <div><jdoc:include type="modules" name="featured3" style="html5" /></div>
      </div>

        <div id="component"><jdoc:include type="component" /></div>

        
        

      </div>
      
      <div data-theme="c" data-role="footer">
        <?php if ($this->countModules( 'm-footer' )) : ?>
        <div id="m-footer"><jdoc:include type="modules" name="m-footer" style="xhtml1" /><div>
        <?php endif; ?>
      </div>

    </div>
  </body>
</html>